{include file="userman_adduser.tpl"}
<div class="wrap">
<table width="100%" height="100%" cellpadding="0" cellspacing="0">
	<tr>
	<td width="54px" height="43px" class="fr_lefttop"></td>
	<td height="43px" class="fr_centertop" ></td>
	<td width="48px" height="43px" class="fr_righttop"></td>
	</tr>
	<tr>
	<td width="54px" class="fr_leftmiddle" >&nbsp;</td>
	<td class="fr_centermiddle">
{if $resp_message == null}
	<div id="ajaxResponse1" class="ajaxResponse"></div>
{else}
	<div id="ajaxResponse1" class="ajaxResponse fade" style="display:block">{$resp_message}</div>
{/if}
<h2>{t}User List{/t}</h2>
	<table class="widefat">
		<thead>
		<tr>
			<th scope="col" style="text-align: center">{t}ID{/t}</th>
	        <th scope="col">{t}Username{/t}</th>
	        <th scope="col">{t}Full Name{/t}</th>
	        <th scope="col" style="text-align: center">{t}Email{/t}</th>
	        <th scope="col" style="text-align: center">{t}Website{/t}</th>
	        {if $smarty.session.u_isadmin == "1"}
	        <th colspan="2" style="text-align: center">{t}Action{/t}</th>
	        {/if}
		</tr>
		</thead>
		<tbody id="thelist">
			{foreach name=user from=$USERS item=item}
				<tr id="user-{$item->ID}" class="{cycle values=,alternate"}">
					<th scope='row' style='text-align: center'>{$item->ID}</th>
					<td>{$item->user_login}</td>
					<td>{$item->user_nicename}</td>
					<td align='center'>{$item->user_email}</td>
					<td align='center'>{$item->user_url}</td>
					{if $smarty.session.u_isadmin == "1"}
					<td><a href="?mod={$smarty.get.mod}&sub1=edituser&id={$item->ID}" class='edit'>{t}Edit{/t}</td>
					<td><a class='delete'
							onclick="onDeleteUser('?mod={$smarty.get.mod}&sub1=edituser', 'ajaxResponse1', '{$item->ID}')">
						{t}Delete{/t}</td>
					{/if}
				</tr>
			{/foreach}
		</tbody>
	</table>
	</td>
	<td width="48px" class="fr_rightmiddle"></td>
	</tr>
	<tr>
	<td width="54px" height="60px" class="fr_leftbot" ></td>
	<td height="60px" class="fr_centerbot"></td>
	<td width="48px" height="60px" class="fr_rightbot" ></td>
	</tr>
</table>
</div>
